Light = AngelLabel.extend({
	x:0,
	y:0,
	duration:0.8,
	status:0,
	diyRect:null,
	ctor:function (parent,angelName, text, index) {
		this._super(parent,angelName, text, index);
	},
	install:function (x, y, teach_flow){
		status = 0;
		this.x = x;
		this.y = y;
		this.angel.runAction(cc.sequence(cc.rotateTo(this.duration, 90),cc.callFunc(this.checkActionDone, this,teach_flow)));
		
	},
	setPosition:function (x,y){
		this._super(x,y);
		this.angel.diyRect = new cc.rect(this.angel.x + this.parent.x, this.angel.y + this.parent.y, this.angel.width, this.angel.height);
	},
	checkActionDone:function(data,teach_flow){
		if(status == 0){
			status = 1;
			this.angel.runAction(cc.sequence(new cc.MoveTo(this.duration, cc.p(this.x,this.y)),cc.callFunc(this.checkActionDone, this, teach_flow)));
		} else if(status == 1){
			status = 2;
			this.setVisible(false);
			teach_flow.next();
		}
	}
});